<?php
/*
 * Created on Oct 3, 2008
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 
class dbLink
{
	private $link;
	public function __construct ($database_name) {
		$link = mysql_connect ("localhost", "root", "554321");
		mysql_select_db ($database_name, $link);
	}
	function query ($sql_query) {
		$result = mysql_query ($sql_query, $link);
		return $result;
	}
	function __destruct() {
		mysql_close ($link);
	}
}		
?>
